package com.boss.service.impl;

import com.boss.entity.CvInfo;
import com.boss.mapper.CvInfoMapper;
import com.boss.service.CvInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CvInfoServiceImpl implements CvInfoService {
    @Autowired
    private CvInfoMapper cvInfoMapper;

    /**
     * 查询信息
     * @param cvInfo
     * @return
     */
    @Override
    public List<CvInfo> getCvInfo(CvInfo cvInfo) {
        return cvInfoMapper.getCvInfo(cvInfo);
    }

    /**
     * 添加信息
     * @param cvInfo
     * @return
     */
    @Override
    public Boolean addCvInfo(CvInfo cvInfo) {
        if(cvInfoMapper.addCvInfo(cvInfo)==1){
            return true;
        }else{
            return false;
        }
    }

    /**
     * 修改信息
     * @param cvInfo
     * @return
     */
    @Override
    public Boolean updateCvInfo(CvInfo cvInfo) {
        if(cvInfoMapper.updateCvInfo(cvInfo)==1){
            return true;
        }else{
            return false;
        }
    }
}
